const { override, fixBabelImports,addLessLoader } = require("customize-cra");

module.exports = override(
    // babel-plugin-import
  fixBabelImports("import", {
    libraryName: "antd",
    libraryDirectory: "es",
    style: "css",
  }),
  addLessLoader({
    //   less-loader
    javascriptEnabled: true,
    modifyVars: { "brand-primary": "red", "color-text-base": "#333"},
    // "brand-primary": "red", "color-text-base": "#333"
  })
);
